﻿

<!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" />
    <title>迎战新高考</title>
    <link rel="stylesheet" href="css/highschool.css">
    <link href="css/weui.min.css" rel="stylesheet" />
    <script type="text/javascript">
        //原理是在微信易信执行Ready之前，先注册事件，所以放在所有请求的最前面
        document.addEventListener("WeixinJSBridgeReady", function () {
            audioAutoPlay();//给个全局函数
        }, false);
        document.addEventListener('YixinJSBridgeReady', function () {
            audioAutoPlay();//给个全局函数
        }, false);
    </script>
</head>
<body>
    <div class="index-box">
        <!--音乐播放 class="play zxhh"-->
        <div class="play zxhh">
            <audio id="Jaudio" class="media-audio" src="/ContentAct/New4/music/music007.mp3" preload loop="loop"></audio>
        </div>
        <header class="index-head">
            <img class="btn-rule" src="pic/btn-rule.png" alt="" />
            <img src="pic/index_title.png" alt="" />
            <div class="index-btn-two">
                <!--<a href="#">-->
                <!--<img src="pic/btn_gogroup.png" alt="">-->
                <!--</a>-->
                <a href="/hd/HighSchool">
                    <img src="pic/btn_gojoin.png" alt="">
                </a>
            </div>
        </header>

        <img class="index-draw" src="pic/index-draw.png" alt="">
        <img class="index-why" src="pic/index_why.png" alt="">

        <div class="index-bgcolor">
            <!--课程页面-->
            <a href="HSLesson" class="index-teacher-box">
                <img src="pic/index_teacher.png" alt="">
            </a>
            <img class="index-system" src="pic/index_system.png" alt="">
            <img class="index-system" src="pic/index_hexin5.png" alt="">

            <!--十大优势页面-->
            <a href="Sxwhy10" class="btn-know">>了解更多思考乐资讯，请点击查看< </a>

            <div id="btn-signup">
                <a href="/hd/HighSchool" class="btn-signup">立即报名</a>
            </div>
        </div>


    </div>

    <script src="js/jquery-3.1.1.min.js"></script>
    <script src="js/music.js"></script>
    <script src="js/layer.js"></script>
    <script src="js/publib.js"></script>
    <script>
        $(function () {
            // 回到顶部
            $(window).scroll(function () {
                if ($(window).scrollTop() > 350) {
                    $('#btn-signup').show();
                }
                else {
                    $('#btn-signup').hide();
                }
            });
            $('.sx-gotop').click(function () {
                $('html, body').animate({ scrollTop: 0 }, 1000);
            });
        });
        // 规则弹出 捕获页
        $(".btn-rule").on("click", function () {
            layer.open({
                type: 1,
                shade: [0.7, 'rgb(0, 0, 0)'],
                area: ['92%'],
                offset: ['6%'],
                scrollbar: false,
                shadeClose: true,
                resize: true,
                title: false, //不显示标题
                closeBtn: 0,
                content: $("#alert-zixun"),

                success: function (layero, index) {
                    $(".btn-close-zixun").on("click", function () {
                        layer.closeAll();
                    })
                }

            });
        })
        function audioAutoPlay() {//全局控制播放函数
            var audio = document.getElementById("Jaudio"),
                play = function () {
                    audio.play();
                    document.removeEventListener("touchstart", play, false);
                };
            audio.play();
            document.addEventListener("touchstart", play, false);
        }

        var isAppInside = /micromessenger/i.test(navigator.userAgent.toLowerCase()) || /yixin/i.test(navigator.userAgent.toLowerCase());
        if (!isAppInside) {//给非微信易信浏览器
            audioAutoPlay();
        }
    </script>

        <script src="js/jweixin-1.2.0.js"></script>
        <script type="text/javascript">
            var shareImg = 'https://sic.skl520.com/ContentAct/SumXc/images/min.png';
            var shareLink = 'https://sic.skl520.com/hd/SumXc';//分享显示页面HighIndex
            var shareDesc = '现读一、三、六、九年级学生暑假来习，学费全免，敬请关注！';
            var shareTitle = '2018思考乐暑假班学费全免，0元学一夏';
            //------------微信js------------
            wx.config({
                debug: false,
                appId: 'wx12be6cfd7335979f',
                timestamp: '1522239448',
                nonceStr: 'Wm3WZYTPz0wzccnW',
                signature: '7a28a0dd610655558f05b49ac953c7a9c0b6469e',
                jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage']
            });

            //分享朋友圈
            wx.ready(function () {
                wx.onMenuShareTimeline({
                    title: shareTitle,
                    link: shareLink,
                    imgUrl: shareImg,
                    success: function () {
                        $.post("/hd/HighShare", { gettype: 2 }, function (ajaxobj) {
                            showDialogTwo(ajaxobj.msg);
                            if (ajaxobj.status == 0) {
                                window.location = "https://sic.skl520.com/hd/HighDraw";
                            }
                        }, "json");
                    },
                    cancel: function () {
                    }
                });

                //分享给朋友
                wx.onMenuShareAppMessage({
                    title: shareTitle,
                    desc: shareDesc,
                    link: shareLink,
                    imgUrl: shareImg,
                    type: 'link',
                    dataUrl: '',
                    success: function () {
                        $.post("/hd/HighShare", { gettype: 3 }, function (ajaxobj) {
                            showDialogTwo(ajaxobj.msg);
                            if (ajaxobj.status == 0) {
                                window.location = "https://sic.skl520.com/hd/HighDraw";
                            }
                        }, "json");
                    },
                    cancel: function () {
                    }
                });
            });

        </script>

</body>
</html>
<!--规则说明-->
<div id="alert-zixun" class="alert-zixun">
    <div class="main-rule-box">
        <div class="btn-close-zixun">
            <img src="pic/btn-close.png" width="85%"/>
        </div>
        <ul class="main-rule-ul">
            <li class="clear">
                <div class="main-rule-left">活动时间</div>
                <div class="main-rule-right">2018年3月23日~2018年4月1日</div>
            </li>
            <li class="clear">
                <div class="main-rule-left">启动时间</div>
                <div class="main-rule-right">2018年3月23日20:00</div>
            </li>
            <li class="clear">
                <!--<div class="main-rule-left">开放时间</div>-->
                <div class="main-rule-right" style="margin-top: -1rem;">
                    <div>活动启动后，每天2轮限时抢报</div>
                    <div>第一轮：10:00—13:00</div>
                    <div>第二轮：19:00—22:00</div>
                </div>
            </li>
            <li class="clear">
                <div class="main-rule-left">活动对象</div>
                <div class="main-rule-right">思考乐教育<span class="rule-color-y">深圳升学高中部各分校</span>,2018<span class="rule-color-y">秋季开学高一</span>学生</div>
            </li>
            <li class="clear">
                <div class="main-rule-left">活动福利</div>
                <div class="main-rule-right">凡报名者均可通过<span class="rule-color-y">转发微信群或朋友圈获取抽奖资格</span>，每天最多抽5次</div>
            </li>
            <li class="clear">
                <div class="main-rule-right">* 思考乐教育有权在法律许可的范围内对活动进行解释</div>
            </li>
        </ul>
    </div>
</div>
